/*
 * @Author: your name
 * @Date: 2022-01-11 13:44:31
 * @LastEditTime: 2022-02-24 14:48:12
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \xy-web-lh\src\router\modules\dashboard.js
 */

import Layout from '@/layout'

export default {
  path: '/',
  component: Layout,
  redirect: '/dashboard',
  children: [
    // {
    //   path: 'dashboard',
    //   name: 'dashboard',
    //   component: () => import('@/views/dashboard/index')
    // },
    {
      path: 'my',
      component: () => import('@/views/my/index')
    },
    {
      path: 'profile',
      component: () => import('@/views/profile/index'),
      children: [{
        path: 'signature',
        component: () => import('@/views/personal/signature/index')
      }, {
        path: 'info',
        component: () => import('@/views/personal/info/index')
      }, {
        path: 'avatar',
        component: () => import('@/views/personal/avatar/index')
      }, {
        path: 'password',
        component: () => import('@/views/personal/password/index')
      }]
    }
    // {
    //   path: 'emergencies',
    //   component: () => import('@/views/emergencies/index')
    // },
  ]
}
